package com.grj.payment.repository;

import com.grj.common.model.ProcessedEvent;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author ganru
 * @date 2025/10/19 5:52
 */

public interface ProcessedEventRepository extends JpaRepository<ProcessedEvent, Long> {
    Optional<ProcessedEvent> findByEventIdAndConsumer(String eventId, String consumer);
}